















<?php
/**
 内容规则：
 1.PHP页面内容只能包含一个根元素（允许任意标签元素，推荐"div"元素）
 2.根元素类定义包含：class="module dshop-um-foot module-thirdparty"（class属性可以添加您需要的类选择器定义）
 3.元素class属性值禁止以"sys-", "pbsm-", "ae-", "j-", "psm-"字符开头,除[ae-module, module]以外
 4.禁止使用<style>标签（元素）
 5.禁止使用<script>标签（元素）
 6.禁止使用<link>标签（元素）
 7.禁止使用标签（元素）的id属性
 8.允许使用元素内联style属性
 */
?>
<div class="module dshop-um-foot module-thirdparty" style="margin:0 auto; background-color:<?echo $_MODULE[mmcolor];?>">
	<div class="foot">
		<ul class="items">
		  <?
		    $texts=explode('|',$_MODULE[text]);
			$links=explode('|',$_MODULE[link]);
			$id=$_shop->shopNumber;
			$a=0;
			if($texts[0]==null){
		echo'
			<li class="item"><a href="http://www.aliexpress.com/store/'.$id.'" target="_blank">Store Home</a></li>
			<li class="item"><a href="http://www.aliexpress.com/store/all-wholesale-products/'.$id.'.html" target="_blank">Products</a></li>
			<li class="item"><a href="http://www.aliexpress.com/store/sale-items/'.$id.'.html" target="_blank">Sale Items</a></li>
			<li class="item"><a href="http://www.aliexpress.com/store/top-rated-products/'.$id.'.html?tracelog=topselling_tab" target="_blank">Top Selling</a></li>
			<li class="item"><a href="http://www.aliexpress.com/store/new-arrivals/'.$id.'.html?tracelog=newarrivals_tab" target="_blank">Feedback</a></li>
			<li class="item"><a href="http://www.aliexpress.com/store/contactinfo-32287694550-222252360/'.$id.'.html" target="_blank">Contact Details</a></li>
		';
			}else{
				foreach($texts as $text){
					
					if($links[$a]){
						$link=$links[$a];
					}else{
						$link="#";
					}
				echo'<li class="item"><a href="'.$link.'" target="_blank">'.$text.'</a></li>';
				}
			}
		  ?>
			
		</ul>
        
		<div class="ft" style=" background-color:<?echo $_MODULE[mmcolor];?>">
      <?
		$bdis=$_MODULE[bdis];
		$color=explode('|',$_MODULE[bcolor]);
		if($_MODULE[bcolor]){
			$bcolor="color:".$_MODULE[bcolor].";";
		}else{
			$bcolor="";
		}
		if($_MODULE[bipic]){
		$bipic="background:url(".$_MODULE[bipic].") no-repeat top center;";
		}else{
		$bipic="";
		}
		
		echo'
		<div class="hd" style="'.$bdis.'">
			<div class=""></div>
			';
			
			$sding=explode('|',$_MODULE[ssding]);
			$dis=$_MODULE[s2dis];
			$id=$_shop->shopNumber;
			echo '<div class="srch" style="left:'.$sding[0].'px;top:'.$sding[1].'px;'.$dis.'">';
			echo '
					<form class="refine-search-form" name="search" action="/store/'.$id.'/search?" method="get" target="_blank">
					<input type="text" name="SearchText" size="17" class="keywords" value="">
					<input type="hidden" name="minPrice" value="">
					<input type="hidden" name="maxPrice" value="">
					<input type="hidden" name="filterAllSearch" value="false">
					<input type="hidden" name="freeShipCountry" value="">
					<input type="submit" name="" value="" class="ui-button">
				</form>
			</div>';
		
	
			$sding=explode('|',$_MODULE[rmding]);
			$rmcs=explode('|',$_MODULE[rmc]);
			$dis=$_MODULE[s3dis];
			$id=$_shop->shopNumber;
			echo '<div class="hotkey" style="right:'.$sding[0].'px;top:'.$sding[1].'px;'.$dis.'">';
					foreach($rmcs as $rmc){
						echo'<a target="_blank" href="http://www.aliexpress.com/store/'.$id.'/search?SearchText='.$rmc.'" class="keyword">'.$rmc.'</a>';
					}		
			echo'
			     </div>
		</div>';
	?>  
        
        
        </div>
<?
			$yuyans=explode('@_@',$_MODULE['yuyan']);
			$id=$_shop->shopNumber;
			$gstyle="color:$_MODULE[gstyle];";
			$istrue='@_@'.$_MODULE[baodis];
							if (!strpos($istrue,'xinxi')){        
				  $title_xinxi='display:none;';
			  }
			
			if($_MODULE[mmcolor]){
				$mcolor="background:".$_MODULE[mmcolor].";";
			}else{
				$mcolor="";
			}
			$lina=$_MODULE['lina_1'];
echo'
		<div class="lan" style="'.$mcolor.'">';
			


			echo'
				<div style="'.$mcolor.'" class="um-wrap">
						<div class="discription">
						
						<h2 style="'.$bstyle.'">'.$_MODULE[hd].'</h2>
						<p style="'.$mstyle.'">'.$_MODULE[text].'</p>
						</div>
						
						<ul style="width:1200px;" class="language-list">';
						
						foreach($yuyans as $yuyan){
							$yu=explode('|',$yuyan);
							
							if($yu[0]=="pt1"){
								
						echo'<li>
									<a target="_blank" href="http://pt.aliexpress.com/store/'.$id.'" >
										<img alt="" title="请选择" src="assets/images/'.$yu[0].'.png">
									</a>
									<h5 style="'.$gstyle.'">'.$yu[1].'</h5>
								</li>';	
							}else{
							if($yu[0]!=null){
							echo'<li>
									<a target="_blank" href="http://'.$yu[0].'.aliexpress.com/store/'.$id.'" >
										<img alt="" title="请选择" src="assets/images/'.$yu[0].'.png">
									</a>
									<h5 style="'.$gstyle.'">'.$yu[1].'</h5>
								</li>';	
							}
							}
						}
			  
						
					echo'</ul>
						</div>
			</div></div>	
		
		<div class="footxx" style="'.$title_xinxi.'">
			<div class="xxl" style="background-color:'.$_MODULE[mmcolor].'">
				<li><a target="_blank" href="'.$_MODULE[lina_1].'">
					<div class="titl" style="'.$bipic1.'"></div>
					<div class="title1" style="'.$bcolor.'">'.$_MODULE[bgtext1].'</div>
					<div class="ggao" style="'.$bcolor.'">'.$_MODULE[xtext1].'</div></a>
				</li>
				<li><a target="_blank" href="'.$_MODULE[lina_2].'">
					<div class="tit2" style="'.$bipic2.'"></div>
					<div class="title1" style="'.$bcolor.'">'.$_MODULE[bgtext2].'</div>
					<div class="ggao" style="'.$bcolor.'">'.$_MODULE[xtext2].'</div></a>
				</li>
				<li><a target="_blank" href="'.$_MODULE[lina_3].'">
					<div class="tit3" style="'.$bipic3.'"></div>
					<div class="title1" style="'.$bcolor.'">'.$_MODULE[bgtext3].'</div>
					<div class="ggao" style="'.$bcolor.'">'.$_MODULE[xtext3].'</div></a>
				</li>
				<li style=""><a target="_blank" href="'.$_MODULE[lina_4].'">
					<div class="tit4" style="'.$bipic4.'"></div>
					<div class="title1" style="'.$bcolor.'">'.$_MODULE[bgtext4].'</div>
					<div class="ggao" style="'.$bcolor.'">'.$_MODULE[xtext4].'</div></a>
				</li>
					
		</div>	
		
				
		</div>

			';
			
			
			?>
		
</div>
